//
//  SecondShangPinGuanLi.m
//  EJLX
//
//  Created by xufei on 15/12/10.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "SecondShangPinGuanLi.h"

@implementation SecondShangPinGuanLi
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        _productId=[userDic[@"productId"]intValue];
         _price=[userDic[@"price"]intValue];
         _stockNum=[userDic[@"stockNum"]intValue];
         _discountPrice=[userDic[@"discountPrice"]intValue];
         _commision=[userDic[@"commision"]intValue];
         _collectionNum=[userDic[@"collectionNum"]intValue];
        _imgUrl=[userDic[@"imgUrl"]copy];
        _title=[userDic[@"title"]copy];
        _selling=userDic[@"selling"];
        _discounting=userDic[@"discounting"];
        
        
        
    }
    return self;
}

@end
